home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS1097.lzh
/
AMOSLIST
/
000170_amos-request@svcs1.digex.net_Thu Oct 16 18:43:07 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-11-02
|
4KB
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id SAA29239
for <mcox@access.digex.net>; Thu, 16 Oct 1997 18:43:06 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id OAA16691
for amos-out; Thu, 16 Oct 1997 14:58:51 -0400 (EDT)
Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id OAA16688
for <amos-list@svcs1.digex.net>; Thu, 16 Oct 1997 14:58:50 -0400 (EDT)
Received: from relay2.inet.tele.dk (relay2.inet.tele.dk [194.182.149.120])
by mail3.access.digex.net (8.8.5/8.8.5) with SMTP id OAA29697
for <amos-list@access.digex.net>; Thu, 16 Oct 1997 14:58:45 -0400 (EDT)
Received: (qmail 34922 invoked from network); 16 Oct 1997 18:58:29 -0000
Received: from post8.tele.dk (194.239.134.172)
by relay2.inet.tele.dk with SMTP; 16 Oct 1997 18:58:29 -0000
Received: from post8.tele.dk ([194.239.180.44]) by post8.tele.dk
(Netscape Mail Server v2.02) with SMTP id AAA45456;
Thu, 16 Oct 1997 20:58:26 +0200
From: Jens Vang Petersen <top_cat@post8.tele.dk>
To: Declan_Gorman@modusmedia.com
CC: amos-list@access.digex.net
Date: Thu, 16 Oct 1997 20:58:14 +0100
Message-ID: <yam7228.717.1748273928@post8.tele.dk>
In-Reply-To: <0002EFFE.@modusmedia.com>
X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
Subject: Re: Problem Copying Memory Blocks
MIME-Version: 1.0
Content-Type: text/plain
Status: O
X-Status:
On 16-Okt-97, Declan_Gorman@modusmedia.com smashed the keyboard with:
>
> I will try to explain this the best I can so bear with me
>
> I am trying to copy a memory block of 256 bytes from one address to
> another using the following line of code which is causing my system to
> crash.
>
> Copy Start(SBNK)+Val(SVCE$(SMZ)),Start(SBNK)+Val(SVCE$(SMZ))+256 to
> Start(20)
>
> where SBNK is either 10 or 11 and SMZ ranges from 1 to 128
>
> At one stage when I ran the program where SBNK is 10 and SMZ is 1 I
> got the following values
>
> Copy 1225400,1225656 to Start(20)
>
> The same line of code in direct mode does not crash and works fine but
> when run through my program it crashes.
>
> I went stepped through everything to verify that I was getting valid
> values for both SBNK and SMZ and every time they were valid.
>
Uhh, this is a bit of a long-shot, but try to calculate the val's outside
of the command.. (something like: wa=val(svce$(n)) and then use the variable
in the copy command, don't know why it happens, but by putting a break down
after the 'val' you can at least see what part goes wrong (I'm suspecting
the VAL very much as the Copy command never gives me any problems at all).
Here's a few check-points for your help, but you proberly know them..
.. 'Copy' MUST use EVEN adresses, be very sure about this !!!
.. 'VAL' sometimes screws up when encountering strange char's, so make sure
that the string starts right out with a valid number. Also be sure that
the number is terminated by either a 'normal' char (A-Z,a-z) or space or
the end of the string..
.. Have you tried to enter the numbers directly in the copy command ??
NB: The EVEN adresses on Copy should only apply to 68000->68020 CPU's,
newer ones SHOULD be able to cope with uneven (Havn't tried it)..
--
Happy greetings, Yours..
__________________________________________________________________________
/_ __/ __ / __ /\ ___\ __ \__ _\ aka. JENS VANG PETERSEN
/ / / /_/ / ____/ \ \___\ __ \ \ \ Nyvej 8, DK-4450 Jyderup, Denmark
/_/ /_____/_/ \_____\_\ \_\ \_\ top_cat@post8.tele.dk
--------------------------------------------------------------------------
Never forget the 'Queen Of Hearts', Diana, Princess Of Wales, 1961->1997
--------------------------------------------------------------------------